/*
 * Copyright (c) 2019 Wormpex.com. All Rights Reserved.
 */

package com.sk.other;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * @author ke.su date: 2019-11-08 Time: 上午10:59
 */
public class ListItTest {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("ss");
        list.add("ss");
        list.add("ss");



        boolean b = true;
        for (Iterator<String> iterator = list.iterator(); iterator.hasNext(); ) {
            String str = iterator.next();
            if(b){
                iterator.next();
            }

        }


    }
}
